import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/historical_expenditure_entity.g.dart';

@JsonSerializable()
class HistoricalExpenditureEntity {
  HistoricalExpenditureEntity(
      {this.pay_cert_id,
      this.fund_type_code,
      this.fund_type_name,
      this.fiscal_year,
      this.vou_date,
      this.pay_cert_no,
      this.pay_acct_name,
      this.pay_acct_no,
      this.pay_acct_bank_name,
      this.payee_acct_bank_name,
      this.payee_acct_name,
      this.payee_acct_no,
      this.pay_amt,
      this.lqd_quota_notice_no,
      this.pay_cert_sum_no,
      this.lqd_cert_no,
      this.exp_func_code,
      this.exp_func_name,
      this.gov_bgt_eco_code,
      this.gov_bgt_eco_name,
      this.dep_bgt_eco_code,
      this.dep_bgt_eco_name,
      this.agent_business_no,
      this.xpay_amt,
      this.xpay_date,
      this.agency_code,
      this.agency_name,
      this.use_des,
      this.set_mode_code,
      this.set_mode_name,
      this.pro_code,
      this.pro_name,
      this.mof_div_code,
      this.mof_div_name,
      this.foreign_amt,
      this.currency_code,
      this.currency_name,
      this.est_rat,
      this.receiver_code,
      this.receipt_add_word,
      this.xpayee_acct_name,
      this.xpayee_acct_no,
      this.xpayee_acct_bank_name,
      this.update_time,
      this.is_deleted,
      this.create_time,});

  factory HistoricalExpenditureEntity.fromJson(Map<String, dynamic> json) =>
      $HistoricalExpenditureEntityFromJson(json);

  Map<String, dynamic> toJson() => $HistoricalExpenditureEntityToJson(this);

  String? pay_cert_id;
  String? fund_type_code;
  String? fund_type_name;
  String? fiscal_year;
  String? vou_date;
  String? pay_cert_no;
  String? pay_acct_bank_name;
  String? pay_acct_name;
  String? pay_acct_no;
  String? payee_acct_bank_name;
  String? payee_acct_name;
  String? payee_acct_no;
  String? pay_amt;
  String? lqd_quota_notice_no;
  String? pay_cert_sum_no;
  String? lqd_cert_no;
  String? exp_func_code;
  String? exp_func_name;
  String? gov_bgt_eco_code;
  String? gov_bgt_eco_name;
  String? dep_bgt_eco_code;
  String? dep_bgt_eco_name;
  String? agent_business_no;
  String? xpay_amt;
  String? xpay_date;
  String? agency_code;
  String? agency_name;
  String? use_des;
  String? set_mode_code;
  String? set_mode_name;
  String? pro_code;
  String? pro_name;
  String? mof_div_code;
  String? mof_div_name;
  String? foreign_amt;
  String? currency_code;
  String? currency_name;
  String? est_rat;
  String? receiver_code;
  String? receipt_add_word;
  String? xpayee_acct_name;
  String? xpayee_acct_no;
  String? xpayee_acct_bank_name;
  String? update_time;
  String? is_deleted;
  String? create_time;

  
}

@JsonSerializable()
class HistoricalExpenditurePageEntity {
  HistoricalExpenditurePageEntity();

  factory HistoricalExpenditurePageEntity.fromJson(Map<String, dynamic> json) =>
      $HistoricalExpenditurePageEntityFromJson(json);

  Map<String, dynamic> toJson() => $HistoricalExpenditurePageEntityToJson(this);

  int? total;
  int? size;
  int? current;
  int? pages;
  List<HistoricalExpenditureEntity>? records;
}
